package com.feiyun.model.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import javax.validation.constraints.PositiveOrZero;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * @ClassName UserPhoto Entity
 * @time 2023/03/12 17:25:22
 */
@Setter
@Getter
@ApiModel(value = "用户图片地址", description = "此表存储用户图片地址")
@TableName("t_wx_user_photo")
public class UserPhoto implements Serializable {
    @ApiModelProperty("唯一ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户ID")
    @TableField(value = "user_id")
    private Integer userId;

    @ApiModelProperty("图片地址")
    @TableField
    private String photoPath;

    @ApiModelProperty("是否为头像")
    @TableField(value = "is_avatar")
    private Boolean isAvatar;

    @ApiModelProperty("创建时间")
    @TableField
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField
    private LocalDateTime updateTime;

    @JsonIgnore
    @TableField(exist = false)
    private Integer count;

}